#include<stdio.h>
#include"./01.h"

int main(int argc, char *argv[])
{
	int fib_nth;
	long long fib_nth_term;

	int n;
	long long factorial;

	int num1;
	int num2;
	int tem;
	char c;

	int score;
	char grade;
	
	printf("你想得到斐波那契数列的第几项？\n");
	scanf("%d", &fib_nth);
	fib_nth_term = get_fibonacci_nth_term(fib_nth);
	printf("斐波那契数列的第%d项是：%lld\n", fib_nth, fib_nth_term);

	printf("你想得到几的阶乘？\n");
	scanf("%d", &n);
	factorial =	compute_factorial(n);
	printf("%d的阶乘是%lld\n", n, factorial);
	
	printf("请输入两个数：");
	scanf("%d%d", &num1, &num2);
	tem = compare_two_ints(num1, num2);
	if(tem > 0)c = '>';
	else if(tem < 0)c = '<';
	else c = '=';	
	printf("%d%c%d\n", num1, c, num2);
	
	printf("请输入你的成绩：\n");
	scanf("%d", &score);
	grade = get_grade_by_score(score);
	printf("你的成绩是：%c\n", grade);	
	return 0;
}
